#include "../include/time1.h"
char* gettime(void)
{
	//写入时间
	time_t timep;
	
	struct tm *p;
	//不行就尝试静态变量
	static char time1[28]={0};
	time (&timep);
	p=gmtime(&timep);
	//将它们合成一个字符串
	sprintf(time1,"%d年%d月%d日%d:%d:%d",1900+p->tm_year,1+p->tm_mon,p->tm_mday,8+p->tm_hour,p->tm_min,p->tm_sec);

	return time1;
}
